import { createStore } from "vuex";

export default createStore({
  state: {
    themeName: "dark",
    bgClock: "#040f32",
    title: "#d5880a",
  },
  getters: {},
  mutations: {
    changeName(state) {
      if (state.themeName == "dark") {
        state.themeName = "westeros";
        state.bgClock = "#ccc";
        state.title = "#893448";
      } else {
        state.themeName = "dark";
        state.bgClock = "#040f32";
        state.title = "#d5880a";
      }
      console.log(state.themeName);
    },
  },
  actions: {},
  modules: {},
});
